/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-09-14     huger       the first version
 */
#ifndef APPLICATIONS_BSP_BSP_ADC_H_
#define APPLICATIONS_BSP_BSP_ADC_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "bsp.h"

#define ADC_BUFF_SIZE       20
#define Threshold_Value     1500
extern ADC_HandleTypeDef hadc1;
extern DMA_HandleTypeDef hdma_adc1;

void bsp_adc_init(void);
extern void MX_DMA_Init(void); //dma init
extern void MX_ADC1_Init(void);//adc init
extern uint16_t adc_buff[ADC_BUFF_SIZE];

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* APPLICATIONS_BSP_BSP_ADC_H_ */
